package com.cgc999.host.api;

import com.cgc999.host.vo.CgcPromoteArticle;
import com.cgc999.host.vo.ContentInfoVo;
import com.cgc999.host.vo.MenuInfoVo;
import com.cgc999.host.vo.PageResult;
import com.cgc999.host.vo.PromoteInfoVo;
import com.cgc999.host.vo.ResponseInfo;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @CreateDate: 2020/1/6 14:53
 * @Description: 公众号服务
 * @Author: lgh
 */
public interface PromoteService {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("promote/gainPromoteList")
    Call<ResponseInfo<PageResult<PromoteInfoVo>>> gainPromoteList(@Body RequestBody promotes);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("promote/gainContentHomeList")
    Observable<ResponseInfo<PageResult<ContentInfoVo>>> gainContentHomeList(@Body RequestBody promote);


    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("promote/gainMenu")
    Observable<ResponseInfo<MenuInfoVo>> gainMenu(@Body RequestBody promote);


    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("promote/addArticle")
    Observable<ResponseInfo<CgcPromoteArticle>> addArticle(@Body RequestBody addArticle);
}
